<%= form_for @good do |f| %>
    <div class="field">
    <%= f.label "商品名" %>
    <%= f.text_field :name %>
    </div>

    <div class="field">
    <%= f.label "描述" %>
    <%= f.text_area :description %>
    </div>

    <div class="field">
    <%= f.label "品质" %>
    <%= f.select :quality, ["全新", "八成新", "五成新", "三成新"] %>
    </div>

    <div class="field">
    <%= f.label "价格" %>
    <%= f.number_field :price %>
    </div>

    <div class="field">
    <%= f.label "图片" %>
    <%= f.file_field :picture%>
  </div>

    <div class="actions">
    <%= f.submit "发布" %>
  </div>
<% end %>
